﻿
namespace Registration
{
    public partial class Author
    {
        public override string ToString()
        {

            return string.Format("@{0} [{1}]", Author1, ImagePath);
        }

        public override bool Equals(object obj)
        {
            if (obj is Author)
            {
                var that = (Author) obj;
                return Author1.Equals(that.Author1);
            }
            return false;
        }
        public override int GetHashCode()
        {
            return Author1.GetHashCode();
        }
    }
}
